﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace linkedin_bot_demo.Models
{
    public class AccountModel
    {
        public AccountModel() { }

        [XmlAttribute("name")]
        public string FirstName { get; set; }

        [XmlAttribute("surname")]
        public string LastName { get; set; }

        [XmlAttribute("token")]
        public string AccessToken { get; set; }

        [XmlAttribute("expires")]
        public long Expires { get; set; }

        public override string ToString()
        {
            try
            {
                return FirstName + " " + LastName;
            }
            catch
            {
                return base.ToString();
            }
        }
    }
}
